//
//  BaseModel.m
//  滴滴快拍
//
//  Created by dllo on 16/5/18.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel

+ (NSMutableArray *)baseModalByArr:(NSArray *)arr {
    NSMutableArray *modalArr = [NSMutableArray array];
    for (NSDictionary *temp in arr) {
        @autoreleasepool {
            id modal = [[self class] baseModeWithDic:temp];
            [modalArr addObject:modal];
            
        }
    }
    return modalArr;
}

+ (instancetype)baseModeWithDic:(NSDictionary *)dic {
    id modal = [[[self class] alloc] initWithDic:dic];
    return modal;
}

- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}


- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

@end
